﻿
@using FashionWebsite.Models

@{
   //Layout = "~/Views/Shared/_LayoutFashion.cshtml";
    FashionWebsite.Models.DAL.DalCategory ProductCatelogy = new FashionWebsite.Models.DAL.DalCategory();
    var getcategoryparent = ProductCatelogy.getListparent();
     FashionWebsite.Models.DAL.DalCategory Catelogy = new FashionWebsite.Models.DAL.DalCategory();
}

<div id="cphMain_ctl00_LeftPane" class="left">
<div id="cate-menu" class="DefaultModule cate-menu">
    <div class="defaultTitle cate-menu-title">
        <span>Danh mục sản phẩm</span>
    </div>
    <div class="defaultContent cate-menu-content">
        <ul>
              @foreach (var item in getcategoryparent)
              {
                    <li class="level0 first"><a href="/san-pham/@item.CategoryName-@item.CategoryId">
                        <span>
                        @item.CategoryName </span></a>
                        @{
                            var listSubCate = Catelogy.getCategory(item.CategoryId);
                         }
                         @foreach (var item1 in listSubCate)
                         {
                        <ul style="display: block;">
                       
                                    <li class="level1 first"><a href="san-pham/@item.CategoryName-@item.CategoryId">
                                        <span>
                                       @item1.CategoryName
                                        </span></a>
                                        <ul style="display: block;">
                                            
                                        </ul>
                                    </li>
                                
                            
                          
                        </ul>
                            }
                    </li>
              
              }
        </ul>
    </div>
    <div class="defaultFooter cate-menu-footer"><div></div></div>
</div>

<style type="text/css">
.weather_header{ padding: 10px 0px; text-align: center; }
.weather_header select{ padding: 2px; border: solid 1px #bbb; }
.weather_content{ width: 100%; overflow: hidden; padding-bottom: 10px; }
.weather_content .item{ float: left; width: 49%;}
.weather_day{ text-align: center; font-weight: bold; margin-bottom: 5px; }
.weather_image{ height: 80px; text-align: center; overflow: hidden; }
.weather_temp{ text-align: center; font-weight: bold; color: #054177; }
.weather_desc{ text-align: center; margin-top: 5px; line-height: 1.5; overflow: hidden; height: 50px; }
</style>
<span style="display: none;">
    
</span>
<div class="weather DefaultModule">
    <div class="defaultTitle weather-Title">
        <span>
            Thời tiết</span></div>
    <div class="defaultContent weather-content">
        <div id="BoxWeather">
            <div class="weather_header">
                <select name="ctl00$cphMain$ctl00$ctl04$ctl00$ddlCity" id="cphMain_ctl00_ctl04_ctl00_ddlCity" class="" style="width: 100%;">
	<option selected="selected" value="http://static.bizwebmedia.net/images/weather/30.png;15°C - 22°C;Có lúc có mây;http://static.bizwebmedia.net/images/weather/28.png;17°C - 22°C;Trời nắng">Bắc Giang</option>
	<option value="http://static.bizwebmedia.net/images/weather/38.png;23°C - 31°C;Có thể có mưa rào và dông;http://static.bizwebmedia.net/images/weather/38.png;23°C - 32°C;Có thể có mưa rào và dông">Biên Hòa</option>
	<option value="http://static.bizwebmedia.net/images/weather/38.png;24°C - 29°C;Có thể có mưa rào và dông;http://static.bizwebmedia.net/images/weather/38.png;25°C - 30°C;Có thể có mưa rào và dông">Cần Thơ</option>
	<option value="http://static.bizwebmedia.net/images/weather/30.png;16°C - 22°C;Có lúc có mây;http://static.bizwebmedia.net/images/weather/28.png;18°C - 22°C;Trời nắng">Hải Phòng</option>
	<option value="http://static.bizwebmedia.net/images/weather/30.png;14°C - 23°C;Có lúc có mây;http://static.bizwebmedia.net/images/weather/28.png;17°C - 22°C;Trời nắng">Hà Nội</option>
	<option value="http://static.bizwebmedia.net/images/weather/38.png;23°C - 31°C;Có thể có mưa rào và dông;http://static.bizwebmedia.net/images/weather/38.png;23°C - 32°C;Có thể có mưa rào và dông">TP.Hồ Chí Minh</option>
	<option value="http://static.bizwebmedia.net/images/weather/30.png;15°C - 22°C;Có lúc có mây;http://static.bizwebmedia.net/images/weather/28.png;17°C - 22°C;Trời nắng">Huế</option>
	<option value="http://static.bizwebmedia.net/images/weather/38.png;23°C - 31°C;Có thể có mưa rào và dông;http://static.bizwebmedia.net/images/weather/38.png;24°C - 32°C;Có thể có mưa rào và dông">Vũng Tàu</option>
	<option value="http://static.bizwebmedia.net/images/weather/30.png;11°C - 21°C;Có lúc có mây;http://static.bizwebmedia.net/images/weather/30.png;16°C - 23°C;Có lúc có mây">Lạng Sơn</option>
	<option value="http://static.bizwebmedia.net/images/weather/30.png;15°C - 22°C;Có lúc có mây;http://static.bizwebmedia.net/images/weather/28.png;17°C - 22°C;Trời nắng">Thanh Hóa</option>
	<option value="http://static.bizwebmedia.net/images/weather/28.png;17°C - 22°C;Trời nắng;http://static.bizwebmedia.net/images/weather/26.png;18°C - 22°C;Trời nhiều mây">Vinh</option>
	<option value="http://static.bizwebmedia.net/images/weather/38.png;25°C - 26°C;Có thể có mưa rào và dông;http://static.bizwebmedia.net/images/weather/38.png;24°C - 28°C;Có thể có mưa rào và dông">Nha Trang</option>
</select>
            </div>
            <div class="weather_content">
                <div class="item" style="border-right: 1px solid #e1e1e1;">
                    <div class="weather_day">
                        Hôm nay
                    </div>
                    <div class="weather_image">
                        <img id="_Image_1" alt="" src="App_Themes/FashionShop/images/30.png">
                    </div>
                    <div class="weather_temp">
                        <span id="_Degree_1">15°C - 22°C</span>
                    </div>
                    <div class="weather_desc">
                        <span id="_Desc_1">Có lúc có mây</span>
                    </div>
                </div>
                <div class="item">
                    <div class="weather_day">
                        Ngày mai
                    </div>
                    <div class="weather_image">
                        <img id="_Image_2" alt="" src="App_Themes/FashionShop/images/28.png">
                    </div>
                    <div class="weather_temp">
                        <span id="_Degree_2">17°C - 22°C</span>
                    </div>
                    <div class="weather_desc">
                        <span id="_Desc_2">Trời nắng</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="defaultFooter weather-footer">
        <div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var img_today = document.getElementById("_Image_1");
    var img_tomorrow = document.getElementById("_Image_2");
    var sp_degree_today = document.getElementById("_Degree_1");
    var sp_degree_tomorrow = document.getElementById("_Degree_2");
    var sp_desc_today = document.getElementById("_Desc_1");
    var sp_desc_tomorrow = document.getElementById("_Desc_2");
    var ddl = document.getElementById('cphMain_ctl00_ctl04_ctl00_ddlCity');
    var index = ddl.selectedIndex;
    var value = ddl.options[index].value;
    var splitString = value.split(";");

    img_today.src = splitString[0];
    sp_degree_today.innerHTML = splitString[1];
    sp_desc_today.innerHTML = splitString[2];
    img_tomorrow.src = splitString[3];
    sp_degree_tomorrow.innerHTML = splitString[4];
    sp_desc_tomorrow.innerHTML = splitString[5];

    $j(document).ready(function () {
        $j("[id$='ddlCity']").live("change blur", function () {
            return onChangeValue();
        });
    });

    function onChangeValue() {
        var index = ddl.selectedIndex;
        var value = ddl.options[index].value;
        var splitString = value.split(";");
        img_today.src = splitString[0];
        sp_degree_today.innerHTML = splitString[1];
        sp_desc_today.innerHTML = splitString[2];
        img_tomorrow.src = splitString[3];
        sp_degree_tomorrow.innerHTML = splitString[4];
        sp_desc_tomorrow.innerHTML = splitString[5];
        return false;
    }
</script>


<div id="useronline" class="DefaultModule">
    <div class="defaultTitle useronline-title">
        <span>Lượt truy cập</span></div>
    <div class="defaultContent useronline-content">
        <script type="text/javascript">
            (function () {
                var view = document.createElement('script'); view.type = 'text/javascript'; view.async = true;
                view.src = 'http://stats.bizwebmedia.net/statistic/24840/1.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(view, s);
            })();
        </script>
        <div id="ViewStats"><table class="UserOnlineTable"><tbody><tr id="showOnlineCurrent"><td class="showIconToday"></td><td><span class="UserOnlineLabel">Đang trực tuyến: </span></td><td><span style="font-weight:bold;" class="UserOnlineValue">1</span></td></tr><tr id="showOnlineToday"><td class="showIconYestoday"></td><td><span class="UserOnlineLabel">Hôm nay: </span></td><td><span style="font-weight:bold;" class="UserOnlineValue">5</span></td></tr><tr id="showOnlineYesterday"><td class="showIconYestoday"></td><td><span class="UserOnlineLabel">Hôm qua: </span></td><td><span style="font-weight:bold;" class="UserOnlineValue">1</span></td></tr><tr id="showOnlineTotal"><td class="showIconVisitor"></td><td><span class="UserOnlineLabel">Tất cả: </span></td><td><span style="font-weight:bold;" class="UserOnlineValue">6</span></td></tr></tbody></table></div>
    </div>
    <div class="defaultFooter useronline-footer"><div></div></div>
</div></div>